package com.guoxue.dao.impl;

import com.guoxue.dao.IUserCoinsDao;
import com.guoxue.domain.UserCoinsVo;
import org.springframework.stereotype.Repository;

@Repository
public class UserCoinsDaoImpl extends BaseDaoImpl<UserCoinsVo> implements IUserCoinsDao {
	public void saveUserCoins(UserCoinsVo userCoinsVo) {
		saveOrUpdate(userCoinsVo);
	}

	public UserCoinsVo getUserCoinsById(int uid) {
		return  get("from UserCoinsVo u where u.uid = ?",new Object[] { uid});
	}

}